package com.scalar.chiptrack.finance.creditNote;

import com.scalar.chiptrack.utils.StringUtils;

/**
 * User: Sujan
 * Date: Apr 27, 2007
 * Time: 2:43:07 PM
 */
public class CreditNote
{
    private String creditNoteNumber;
    private int creditNoteId;
    private String salesOrderNo;
    private String customerName;
    private String status;
    private String finalStatus; //CONTAINS HOLD BY GROUPS LIKE 'HOLD BY - FINANCE MARKETING SALES'
    private String noteType;
    private String issueDate;
    private double totalAmount;

    public String getCreditNoteNumber() {
        return creditNoteNumber;
    }

    public void setCreditNoteNumber(String creditNoteNumber) {
        this.creditNoteNumber = creditNoteNumber;
    }

    public int getCreditNoteId() {
        return creditNoteId;
    }

    public void setCreditNoteId(int creditNoteId) {
        this.creditNoteId = creditNoteId;
    }

    public String getSalesOrderNo() {
        return salesOrderNo;
    }

    public void setSalesOrderNo(String salesOrderNo) {
        this.salesOrderNo = salesOrderNo;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    public String getFinalStatus() {
        return finalStatus;
    }

    public void setFinalStatus(String finalStatus) {
        this.finalStatus = finalStatus;
    }


    public String getNoteType() {
        return noteType;
    }

    public void setNoteType(String noteType) {
        this.noteType = noteType;
    }

    public String getIssueDate() {
        return issueDate;
    }

    public void setIssueDate(String issueDate) {
        this.issueDate = issueDate;
    }

    public double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(double totalAmount) {
        this.totalAmount = totalAmount;
    }
    public String getTotalAmountAsString()
    {
        return StringUtils.formatAmount( totalAmount, "$###,###.###" );
    }
}
